<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../assets/js/vue.js"></script>
		
	</head>
	<body>
		<div id="app">
			<panda></panda>
		</div>
		<script type="text/javascript">
			var pandaChild = {
				template:'<div style="color:green;">我是子级</div>'
			}
			var panda = {
				template:'<div style="color: red;">我是父级<pandaChild></pandaChild></div>',
				components:{
					pandaChild:pandaChild
				}
			}
			
			var app = new Vue({
				el:"#app",
				components:{
					"panda":panda
				}
			})
		</script>
	</body>
</html>
